#!/bin/bash

dateStr=`date "+%Y%m%d"`
echo "====>${dateStr}"
log_path=/user_clicks/${dateStr}/
hive -e "use spark_authority_test; load data inpath '${log_path}' into table user_clicks partition(dt='${dateStr}');" 
